package com.eascs.banknet.common.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 借款人基本信息表
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name = "o2o_loan_user")
public class LoanUserEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	public static final String BOC_BANK_STATUS_01B1 = "01B1";// 待贷前调查（仅用于1+N渠道）
	public static final String BOC_BANK_STATUS_01B2 = "01B2";// 贷前调查中（仅用于1+N渠道）
	public static final String BOC_BANK_STATUS_01B3 = "01B3";// 已同意贷前调查（仅用于1+N渠道）
	public static final String BOC_BANK_STATUS_01D1 = "01D1";// 回退中
	public static final String BOC_BANK_STATUS_01L2 = "01L2";// 待放款
	public static final String BOC_BANK_STATUS_01L3 = "01L3";// 放款中
	public static final String BOC_BANK_STATUS_0101 = "0101";// 待创建
	public static final String BOC_BANK_STATUS_0102 = "0102";// 创建中
	public static final String BOC_BANK_STATUS_0103 = "0103";// 待输机
	public static final String BOC_BANK_STATUS_0104 = "0104";// 输机中
	public static final String BOC_BANK_STATUS_0106 = "0106";// 审批中
	public static final String BOC_BANK_STATUS_0107 = "0107";// 已审批
	public static final String BOC_BANK_STATUS_0108 = "0108";// 已放款
	public static final String BOC_BANK_STATUS_0148 = "0148";// 已拒绝
	public static final String BOC_BANK_STATUS_0149 = "0149";// 已完成
	@Column(name = "id")
	@Id
	private String id;

	/**
	 * crm的用户id
	 */
	@Column(name = "loan_id")
	private String loanId;
	/**
	 * 贷款单号
	 */
	@Column(name = "loanapply_no")
	private String loanapplyNo;

	/**
	 * 借款人姓
	 */
	@Column(name = "user_surname")
	private String userSurName;

	/**
	 * 借款人名
	 */
	@Column(name = "user_name")
	private String userName;

	/**
	 * 借款人姓名
	 */
	@Column(name = "user_full_name")
	private String userFullName;

	/**
	 * 借款人姓名拼音
	 */
	@Column(name = "user_name_pinyin")
	private String userNamePinyin;

	/**
	 * 证件类型
	 */
	@Column(name = "document_type")
	private String documentType;

	/**
	 * 证件号码
	 */
	@Column(name = "document_no")
	public String documentNo;

	/**
	 * 借款人手机号
	 */
	@Column(name = "user_phone")
	public String userPhone;

	/**
	 * 客户名称
	 */
	@Column(name = "customer_name")
	public String customerName;

	/**
	 * 客户类型
	 */
	@Column(name = "customer_type")
	public String customerType;

	/**
	 * 借款人性别
	 */
	@Column(name = "sex")
	private String sex;

	/**
	 * 配偶信息id
	 */
	@Column(name = "spouse_id")
	private String spouseId;
	/**
	 * 银行状态
	 */
	@Column(name = "bank_status")
	private String bankStatus;
	/**
	 * 银行申请编号
	 * 
	 */
	@Column(name = "bank_applyno")
	private String bankApplyno;
	/**
	 * 签署意见
	 */
	@Column(name = "notation")
	private String notation;
	/**
	 * 意见类型
	 */
	@Column(name = "type")
	private Integer type;
	/**
	 * 反馈时间
	 */
	@Column(name = "back_time")
	private Date backTime;
	
	@Column(name = "sponsor_type")
	private String sponsorType;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLoanId() {
		return loanId;
	}

	public void setLoanId(String loanId) {
		this.loanId = loanId;
	}

	public String getLoanapplyNo() {
		return loanapplyNo;
	}

	public void setLoanapplyNo(String loanapplyNo) {
		this.loanapplyNo = loanapplyNo;
	}

	public String getUserSurName() {
		return userSurName;
	}

	public void setUserSurName(String userSurName) {
		this.userSurName = userSurName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserFullName() {
		return userFullName;
	}

	public void setUserFullName(String userFullName) {
		this.userFullName = userFullName;
	}

	public String getUserNamePinyin() {
		return userNamePinyin;
	}

	public void setUserNamePinyin(String userNamePinyin) {
		this.userNamePinyin = userNamePinyin;
	}

	public String getDocumentType() {
		return documentType;
	}

	public void setDocumentType(String documentType) {
		this.documentType = documentType;
	}

	public String getDocumentNo() {
		return documentNo;
	}

	public void setDocumentNo(String documentNo) {
		this.documentNo = documentNo;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getCustomerType() {
		return customerType;
	}

	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getSpouseId() {
		return spouseId;
	}

	public void setSpouseId(String spouseId) {
		this.spouseId = spouseId;
	}

	public String getBankStatus() {
		return bankStatus;
	}

	public void setBankStatus(String bankStatus) {
		this.bankStatus = bankStatus;
	}

	public String getBankApplyno() {
		return bankApplyno;
	}

	public void setBankApplyno(String bankApplyno) {
		this.bankApplyno = bankApplyno;
	}

	public String getNotation() {
		return notation;
	}

	public void setNotation(String notation) {
		this.notation = notation;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getBackTime() {
		return backTime;
	}

	public void setBackTime(Date backTime) {
		this.backTime = backTime;
	}

	public String getSponsorType() {
		return sponsorType;
	}

	public void setSponsorType(String sponsorType) {
		this.sponsorType = sponsorType;
	}
}
